<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "common_config_value".
 *
 * @property int $id 主键
 * @property string $app_id 应用
 * @property int $config_id 配置id
 * @property string|null $data 配置内
 */
class ConfigValue extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'common_config_value';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['config_id'], 'integer'],
            [['data'], 'string'],
            [['app_id'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'app_id' => 'App ID',
            'config_id' => 'Config ID',
            'data' => 'Data',
        ];
    }
}
